package com.cw.data;

import java.io.Serializable;

public enum ConstantEnum implements Serializable {

    SUCCESS("操作成功", 10000),
    ERROR("操作失败", 10001);

    Integer code;

    String message;

    ConstantEnum(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    ConstantEnum() {
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
